JFLAGS = 
JC = javac
JAR = jar
OUTPUT_JAR = w6111_p1.jar
CLASSPATH = .:../lib/*

.SUFFIXES: .java .class
.java.class:
	$(JC) $(JFLAGS) -cp "$(CLASSPATH)" $*.java

CLASSES = \
        QueryOptimizer.java \
        Main.java

default: classes
	$(JAR) -cfe ../$(OUTPUT_JAR) Main *.class

classes: $(CLASSES:.java=.class)

clean:
	$(RM) *.class
	$(RM) ../$(OUTPUT_JAR)
